package org.example.server.controller;

import org.example.api.response.BaseResponse;
import org.example.api.response.StatusCode;
import org.example.model.entity.UserOrder;
import org.example.server.dto.BaseDto;
import org.example.server.server.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author shkstart
 * @create 2020-04-09 10:30
 */
@Controller
@RequestMapping("order")
public class UserOrderController extends AbstractController {

    @Autowired
    BaseService baseService;
    @RequestMapping(value = "selectUser",method = RequestMethod.GET)
    @ResponseBody
    public BaseResponse selectUser(@RequestParam String orderNo){
        BaseResponse response=new BaseResponse(StatusCode.success);
        try {

        }catch (Exception e) {
            log.error("订单详细层出现错误");
            response = new BaseResponse(StatusCode.fail.getCode(),e.getMessage());
        }
        return response;
    }
}
